<template>
  <div class="category">
    <h3>{{ title }}</h3>
    <slot :games="games">插槽1，先挖一个坑，等着使用者来填充</slot>
  </div>
</template>

<script>
export default {
  name: 'Category',
  props: ['title'],
  data() {
    return {
      games: ['LOL', 'CF', 'CS', 'DATA'],
    };
  },
};
</script>

<style>
.category {
  background-color: skyblue;
  height: 300px;
  width: 200px;
}
h3 {
  text-align: center;
  background-color: orange;
}
</style>
